package com.server.pinggu.service.impl;

import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import org.apache.commons.lang3.StringUtils;
import com.server.pinggu.mapper.SenCreateexcelLogMapper;
import com.server.pinggu.domain.SenCreateexcelLog;
import com.server.pinggu.service.ISenCreateexcelLogService;

import java.util.List;

/**
 * 【请填写功能名称】Service业务层处理
 *
 * @author ltao
 * @date 2022-10-23
 */
@Service
public class SenCreateexcelLogServiceImpl extends ServiceImpl<SenCreateexcelLogMapper, SenCreateexcelLog> implements ISenCreateexcelLogService {

    @Override
    public List<SenCreateexcelLog> queryList(SenCreateexcelLog senCreateexcelLog) {
        LambdaQueryWrapper<SenCreateexcelLog> lqw = Wrappers.lambdaQuery();
        if (senCreateexcelLog.getFid() != null){
            lqw.eq(SenCreateexcelLog::getFid ,senCreateexcelLog.getFid());
        }
        if (senCreateexcelLog.getStatus() != null){
            lqw.eq(SenCreateexcelLog::getStatus ,senCreateexcelLog.getStatus());
        }
        return this.list(lqw);
    }
}